<?php
/* @var $this CategorysController */
/* @var $model Categorys */

$this->breadcrumbs = array(
    '栏目管理' => array('admin'),
    $model->category_name,
);

$this->menu = array(
    array('label' => '添加', 'url' => array('create')),
    array('label' => '修改', 'url' => array('update', 'id' => $model->id)),
    array('label' => '删除', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => '栏目管理', 'url' => array('admin')),
);
?>

<h1>查看 #<?php echo $model->category_name; ?></h1>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'id',
        array(
            'name' => 'category_parent',
            'value' => $model->parentName($model->category_parent),
        ),
        array(
            'name' => 'category_model',
            'value' => $model->category_model_array[$model->category_model]
        ),
        array(
            'name' => 'category_type',
            'value' => $model->category_type_array[$model->category_type]
        ),
        array(
            'name' => 'category_image',
            'value' => CHtml::image(Yii::app()->baseUrl."/".$model->category_image),
            'type' => 'raw',
        ),
        'category_name',
        'category_alias',
        'category_intro',
        array(
            'name' => 'category_content',
            'type' => 'raw'
        ),
        'seo_title',
        'seo_keywords',
        'seo_description',
        array(
            'name' => 'category_status',
            'value' => Categorys::model()->status_array[$model->category_status],
        ),
        array(
            'name' => 'category_ismenu',
            'value' => Categorys::model()->menu_array[$model->category_ismenu]
        ),
        'category_order'
    ),
));
?>
